package com.caption.service.impl;
import com.caption.entity.TransactionDo;
import com.caption.mapper.TransactionDoMapper;
import com.caption.service.TransactionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class TransactionServiceImpl implements TransactionService {

    @Autowired
    private TransactionDoMapper transactionDoMapper;

    @Override
    public List<TransactionDo> findByCondition(TransactionDo transactionDo) {
        return transactionDoMapper.findByCondition(transactionDo);
    }

    @Override
    public TransactionDo findById(Integer id) {
        return transactionDoMapper.selectByPrimaryKey(id);
    }
}
